package com.planet.stockanalysis.server.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 指数
 * @author planet
 *
 */
@Entity
@Table(name = "index")
public class Index implements Serializable{
	private static final long serialVersionUID = -8009876221871498866L;
	@Id
	private int id;
	private Date date;
	private Date grabDate;
	private StockCode code;

	private String name;
	/**
	 * 成交量
	 */
	private double turnOver;
	/**
	 * 成交额
	 */
	private double volume;
	/**
	 * 当前点数
	 */
	private double points;
	/**
	 * 涨跌率
	 */
	private double changeRate;
	
	
	
	public double getPoints() {
		return points;
	}
	public void setPoints(double points) {
		this.points = points;
	}
	public double getChangeRate() {
		return changeRate;
	}
	public void setChangeRate(double changeRate) {
		this.changeRate = changeRate;
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public StockCode getCode() {
		return code;
	}
	public void setCode(StockCode code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public double getTurnOver() {
		return turnOver;
	}
	public void setTurnOver(double turnOver) {
		this.turnOver = turnOver;
	}
	public double getVolume() {
		return volume;
	}
	public void setVolume(double volume) {
		this.volume = volume;
	}
	public Date getGrabDate() {
		return grabDate;
	}
	public void setGrabDate(Date grabDate) {
		this.grabDate = grabDate;
	}
}
